﻿/**
* ...
* @author Andy Zupko
* @version 0.1
*/

package  {

	public class Rule {
		public var axiom:String = "F";
		public var rule:String = "";
		public function Rule(ax:String = null, ru:String = null){
			axiom = ax;
			rule=ru;
		}
		
		public static function createRule(str:String):Rule{
			
			var r:Rule = new Rule();
			str = str.replace(" ", "");
			r.axiom = str.substring(0, 1);
			r.rule = str.substring(2, str.length);
			return r;
			
		}
		
	}
	
}
